package com.example.merchant.entity;

/**
 * 商人实体类
 */
public class Merchant extends User{
    /*
    商人属性
     */
    private String identity;//身份
    private String address;//地址
    private Integer idNumber;//身份证号
    private Integer phone;//联系方式
    private String storeName;//商店名称


    public Merchant(Integer id, String name, String sex, Integer age, Double money, String identity, String address, Integer idNumber, Integer phone, String storeName) {
        super(id, name, sex, age, money);
        this.identity = identity;
        this.address = address;
        this.idNumber = idNumber;
        this.phone = phone;
        this.storeName = storeName;
    }

    public Merchant(){}

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getIdentity() {
        return identity;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setIdNumber(Integer idNumber) {
        this.idNumber = idNumber;
    }

    public Integer getIdNumber() {
        return idNumber;
    }

    public void setPhone(Integer phone) {
        this.phone = phone;
    }

    public Integer getPhone() {
        return phone;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getStoreName() {
        return storeName;
    }


}
